package zhtt.cn.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import zhtt.cn.Main;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by zhaoq on   2023/11/27 14:50
 **/
@RestController
//@RequestMapping(value = "/test")
//@RequestMapping()
@RequestMapping("/api/app")
public class AppController {

    @GetMapping("/restart")
    public String test(HttpServletRequest request, HttpServletResponse response){
        Main.restart();
        return "Hello World!";
    }
}
